<%--
 * Título: gestHora. Aplicación web de gestión de horarios para conservatorios.
 * Alumnos:
 * - Javier Pardo Muñoz. I.T. Informática de Gestión
 * - Antonio Prior Cazorla. I.T. Informática de Gestión
 * Director: Dr. José Raúl Romero Salguero.
 *     
 *  Copyright (C) 2013 Javier Pardo Muñoz / Antonio Prior Cazorla
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.

 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 --%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>

<jsp:useBean id="MsgBean" class="es.uco.gesthora.interfaz.MsgBean" scope="session"/>

<html>

    <head>
        <link rel="stylesheet" type="text/css" href="/gestHora/css/general.css">

        <script type="text/javascript" src="/gestHora/js/jQuery.js"></script> 
        <script type="text/javascript" src="/gestHora/js/menu.js"></script>  

        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="icon" type="image/png" href="/gestHora/img/favicon.png" />
        <title>gestHora: Olvido de contraseña</title>
    </head>

    <body>

        <div class="contenedor">

            <jsp:include page="/jsp/views/header.jsp"/>

            <div class="contenido">
                <div class="contenido-dentro">
                    <div class="contenido-principal contenido-principal-index" role="main">

                        <section class="contenido-articulo contenido-articulo-index">
                            <a class="volver" href="javascript:history.go(-1)"> &#8592; Volver atrás</a><br/>
                            <h2>¿Olvidó su contraseña?</h2>
                            <% if (MsgBean.getMsg().equals("")) {%>

                            <p>Indique el correo electrónico con el que se registró en gestHora y recibirá una nueva contraseña en su bandeja de entrada.<br/> 
                                Cuando inicie sesión la podrá cambiar desde su panel de control.</p><br/>

                            <form id="olvido" class="formVistas" method="post" action="/gestHora/jsp/controllers/gestionUsuarioController.jsp?tipo=recordar">

                                <fieldset>                                

                                    <label for="email">Correo electrónico: </label>
                                    <input type="email" id="email" name="email" placeholder="usuario@servidor.com" required/><br/>

                                    <button name="enviar" type="submit">Enviar</button>
                                    <button name="limpiar" type="reset">Limpiar</button>

                                </fieldset>

                            </form>               

                            <% } else {%>
                            
                            <a class="volver" href="/gestHora/jsp/views/gestionUsuarioViewRecordar.jsp"> &#8592; Volver atrás</a><br/>
                            <p><%=MsgBean.getMsg()%></p>
                            <% MsgBean.setMsg("");%>

                            <% }%>



                        </section>
                    </div>
                </div>

                <jsp:include page="/jsp/views/footer.jsp"/>

            </div>
        </div>

    </body>
</html>
